package Restaurant;

import static org.junit.Assert.*;
import junit.framework.TestCase;

import org.junit.Test;

import ALog.ALog;
import ALog.ConsLog;

public class TestRestaurant extends TestCase{
	public void testConstructor(){
		 Intersection i1= new Intersection(3, 13);
		 Intersection i2= new Intersection(15, 18);
		 Intersection i3= new Intersection(20, 10);
		 
		Restaurant r1= new Restaurant("nhu tien", "banh trang tron", "10", i1);
		Restaurant r2= new Restaurant("thien than", "rau muong luoc", "20", i2);
		Restaurant r3= new Restaurant("hoa hong", "com chien", "30", i3);
		
		ALoRestaurant a1= new MTLoRestaurant();
		ALoRestaurant a2= new ConsLoRestaurant(r1,a1);
		ALoRestaurant a3= new ConsLoRestaurant(r2,a2);
		ALoRestaurant a4= new ConsLoRestaurant(r3,a3);
		System.out.println(a4);

	}


}
